<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // 求任意两个数的和
        function getSum(nummber1, number2) {
            var sum = 0;
            for (var i = nummber1; i <= number2; i++) {
                sum += i // sum = sum+1;
            }
            // return(37,45);
            console.log(sum);
        }
        getSum(37, 45);
    </script>
</body>

</html>